package org.dong.test;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.dong.mapper.AdminUserMapper;

import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) throws IOException {
//        String resource = "mybatis-config.xml";
//        InputStream inputStream = Resources.getResourceAsStream(resource);
//        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
//        SqlSession sqlSession = sqlSessionFactory.openSession();
//        AdminUserMapper mapper = sqlSession.getMapper(AdminUserMapper.class);
//        Map<String, String> map = new HashMap<String, String>();
//        boolean b = mapper.insertAdminUser();
//        System.out.println(b);


//        AdminUser adminOne = mapper.getAdminOne("admin", "e10adc3949ba59abbe56e057f20f883e");





    }
}
